//
// AWS Manager - A free AWS console application demonstrating advanced concepts
// Copyright (C) 2008-2010 Sean O'Dell. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.awsmanager.common;

/**
 *
 * @author Sean ODell
 */
public class SDBItem {
    private String id;
    private String type;
    private String name;
    private String state;
    private String createtime;
    private String ownernamelast;
    private String ownernamefirst;
    private String ownerdept;
    private String description;
    private int size;
    private boolean active;

    public SDBItem() {
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getOwnerdept() {
        return ownerdept;
    }

    public void setOwnerdept(String ownerdept) {
        this.ownerdept = ownerdept;
    }

    public String getOwnernamefirst() {
        return ownernamefirst;
    }

    public void setOwnernamefirst(String ownernamefirst) {
        this.ownernamefirst = ownernamefirst;
    }

    public String getOwnernamelast() {
        return ownernamelast;
    }

    public void setOwnernamelast(String ownernamelast) {
        this.ownernamelast = ownernamelast;
    }

    public int getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = Integer.parseInt((String) size);
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isActive() {
        if (this.state.equals("terminated")) {
            return false;
        } else {
            return true;
        }
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

}
